package com.example.sbbsec.domain.echarts.base;

import com.google.common.base.MoreObjects;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * echarts 实体基类
 *
 * @author lowe.yang
 * @date 2018-12-03 10:53
 */
@Getter
@Setter
public class BaseSeriesEntity implements Serializable {
    private static final long serialVersionUID = -1323801321454091414L;

    public BaseSeriesEntity() {

    }

    /**
     * @param name  名称
     * @param value 数值
     */
    public BaseSeriesEntity(String name, String value) {
        this.name = name;
        this.value = value;
    }

    /**
     * 名称
     */
    private String name;

    /**
     * 数值
     */
    private String value;

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("name", name)
                .add("value", value)
                .toString();
    }
}
